package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperWalletTrxUser implements Serializable {
    /**
     * id
     */
    private Integer id;

    /**
     * 用户名或手机号
     */
    private String username;

    /**
     * 波场币地址
     */
    private String address;

    private String privateKey;

    /**
     * 同步状态:余额同步1，准备规集2，规集中3
     */
    private Integer asyncStatus;

    /**
     * 最后同步余额USDT数
     */
    private BigDecimal lastAmount;

    /**
     * trx余额
     */
    private BigDecimal trxAmount;

    /**
     * 正在规集hash
     */
    private String hashStr;

    /**
     * 备注
     */
    private String remark;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户名或手机号
     */
    public String getUsername() {
        return username;
    }

    /**
     * 用户名或手机号
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 波场币地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 波场币地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    /**
     * 同步状态:余额同步1，准备规集2，规集中3
     */
    public Integer getAsyncStatus() {
        return asyncStatus;
    }

    /**
     * 同步状态:余额同步1，准备规集2，规集中3
     */
    public void setAsyncStatus(Integer asyncStatus) {
        this.asyncStatus = asyncStatus;
    }

    /**
     * 最后同步余额USDT数
     */
    public BigDecimal getLastAmount() {
        return lastAmount;
    }

    /**
     * 最后同步余额USDT数
     */
    public void setLastAmount(BigDecimal lastAmount) {
        this.lastAmount = lastAmount;
    }

    /**
     * trx余额
     */
    public BigDecimal getTrxAmount() {
        return trxAmount;
    }

    /**
     * trx余额
     */
    public void setTrxAmount(BigDecimal trxAmount) {
        this.trxAmount = trxAmount;
    }

    /**
     * 正在规集hash
     */
    public String getHashStr() {
        return hashStr;
    }

    /**
     * 正在规集hash
     */
    public void setHashStr(String hashStr) {
        this.hashStr = hashStr;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", address=").append(address);
        sb.append(", privateKey=").append(privateKey);
        sb.append(", asyncStatus=").append(asyncStatus);
        sb.append(", lastAmount=").append(lastAmount);
        sb.append(", trxAmount=").append(trxAmount);
        sb.append(", hashStr=").append(hashStr);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWalletTrxUser other = (SuperWalletTrxUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getPrivateKey() == null ? other.getPrivateKey() == null : this.getPrivateKey().equals(other.getPrivateKey()))
            && (this.getAsyncStatus() == null ? other.getAsyncStatus() == null : this.getAsyncStatus().equals(other.getAsyncStatus()))
            && (this.getLastAmount() == null ? other.getLastAmount() == null : this.getLastAmount().equals(other.getLastAmount()))
            && (this.getTrxAmount() == null ? other.getTrxAmount() == null : this.getTrxAmount().equals(other.getTrxAmount()))
            && (this.getHashStr() == null ? other.getHashStr() == null : this.getHashStr().equals(other.getHashStr()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getPrivateKey() == null) ? 0 : getPrivateKey().hashCode());
        result = prime * result + ((getAsyncStatus() == null) ? 0 : getAsyncStatus().hashCode());
        result = prime * result + ((getLastAmount() == null) ? 0 : getLastAmount().hashCode());
        result = prime * result + ((getTrxAmount() == null) ? 0 : getTrxAmount().hashCode());
        result = prime * result + ((getHashStr() == null) ? 0 : getHashStr().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}